package com.lines;

import com.lines.Game;
import com.lines.Graphics;
import com.lines.Screen;
import com.lines.Graphics.PixmapFormat;

public class LoadingScreen extends Screen {
	
	public LoadingScreen(Game game) {
		super(game);
	}

	@Override
	public void update(float deltaTime) {
		Graphics g = game.getGraphics();
		Assets.background = g.newPixmap("background.png", PixmapFormat.RGB565);
		Assets.logo = g.newPixmap("logo2.png", PixmapFormat.ARGB4444);
		Assets.play = g.newPixmap("play.png", PixmapFormat.ARGB4444);
		Assets.hs = g.newPixmap("hs.png", PixmapFormat.ARGB4444);
		Assets.board = g.newPixmap("board1.png", PixmapFormat.ARGB4444);
		Assets.balls = g.newPixmap("balls1.png", PixmapFormat.ARGB4444);
		Assets.buttons = g.newPixmap("buttons1.png", PixmapFormat.ARGB4444);
		Assets.numbers = g.newPixmap("numbers1.png", PixmapFormat.ARGB4444);
		Assets.gameOver = g.newPixmap("go.png", PixmapFormat.ARGB4444);
		Assets.click = game.getAudio().newSound("click.ogg");
		Assets.tap = game.getAudio().newSound("tap.ogg");
		Settings.load(game.getFileIO());
		game.setScreen(new MainMenuScreen(game));
}

	@Override
	public void present(float deltaTime) {
	}

	@Override
	public void pause() {
	}

	@Override
	public void resume() {
	}

	@Override
	public void dispose() {
	}
}
